gtk+3.0.git
7 years agoMerge branch 'wip/tooltip-move-to-rect' into 'gtk-3-24'
Matthias Clasen [Wed, 15 Aug 2018 22:01:20 +0000 (22:01 +0000)]
Merge branch 'wip/tooltip-move-to-rect' into 'gtk-3-24'

Make tooltips use gdk_window_move_to_rect()

See merge request GNOME/gtk!293

7 years agoMerge branch 'wip/carlosg/issue-844' into 'gtk-3-24'
Jonas Ådahl [Tue, 14 Aug 2018 17:52:59 +0000 (17:52 +0000)]
Merge branch 'wip/carlosg/issue-844' into 'gtk-3-24'

gdk/wayland: Avoid idempotent wl_subsurface.set_position calls

See merge request GNOME/gtk!294

7 years agogdk/wayland: Avoid idempotent wl_subsurface.set_position calls
Carlos Garnacho [Thu, 5 Oct 2017 23:06:03 +0000 (01:06 +0200)]
gdk/wayland: Avoid idempotent wl_subsurface.set_position calls

These may not result on wl_surface.frame callbacks, yet we do trigger
a frame clock tick that would get stuck on the lack of such callback.

https://bugzilla.gnome.org/show_bug.cgi?id=784314
https://gitlab.gnome.org/GNOME/gtk/issues/844

Closes: #844
7 years agoUpdated French translation
Claude Paroz [Tue, 14 Aug 2018 11:41:09 +0000 (13:41 +0200)]
Updated French translation

7 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 12 Aug 2018 11:07:37 +0000 (11:07 +0000)]
Update Turkish translation

7 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 12 Aug 2018 10:27:10 +0000 (10:27 +0000)]
Update Turkish translation

7 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 12 Aug 2018 10:21:06 +0000 (10:21 +0000)]
Update Turkish translation

7 years agoUpdate Chinese (Taiwan) translation
Yi-Jyun Pan [Sun, 12 Aug 2018 10:08:50 +0000 (10:08 +0000)]
Update Chinese (Taiwan) translation

7 years agoUpdate Polish translation
Piotr Drąg [Sat, 11 Aug 2018 21:57:28 +0000 (23:57 +0200)]
Update Polish translation

7 years agoUpdated Lithuanian translation
Aurimas Černius [Sat, 11 Aug 2018 15:09:03 +0000 (18:09 +0300)]
Updated Lithuanian translation

7 years agotooltip: Implement positioning using gdk_window_move_to_rect()
Jonas Ådahl [Fri, 10 Aug 2018 15:11:46 +0000 (17:11 +0200)]
tooltip: Implement positioning using gdk_window_move_to_rect()

In order to make tooltip positioning portable, make use of the
move_to_rect API. Some semantical changes are made, as identical
semantics cannot be implemented using the move-to-rect API.

Primarily the implemented semantics are:

Position the tooltip in the center pixels slightly below (defaults to 4
units below) the tooltipped widget. This is always the case for keyboard
driven tooltips; the case where it tries to avoid the pointer cursor is
not implemented.

For pointer position triggered tooltips, implement the following
additional semantics:

Use the current cursor size to determine the padding used to enlarge the
anchor rectangle. This is to try to avoid the cursor overlapping the
tooltip.

If the anchor rectangle is too tall (meaning if we'd be constrained
and flip on the Y axis, it'd flip too far away from the originally
intended position), rely only on the pointer position to position the
tooltip. The approximate pointer cursor rectangle is used as a anchor
rectangle. Ideally we should use the actual pointer cursor rectangle
(image used as well as hotspot coordinate), but we don't have API to
get that information.

If the anchor rectangle isn't to tall, just make sure the tooltip isn't
too far away from the pointer position on the X axis.

Closes: #134
Closes: #432
Closes: #574
Closes: #579
Closes: #878
7 years agogdk/wayland: Always map windows 'moved-to-rect' as popups
Jonas Ådahl [Fri, 10 Aug 2018 15:10:16 +0000 (17:10 +0200)]
gdk/wayland: Always map windows 'moved-to-rect' as popups

Only popups can make use of the move-to-rect semantics so it makes no
sense to try anything other surface type.

7 years agogdk/wayland: Don't remap non-subsurface as subsurface
Jonas Ådahl [Fri, 10 Aug 2018 15:07:05 +0000 (17:07 +0200)]
gdk/wayland: Don't remap non-subsurface as subsurface

Let's just use the fact that a window was mapped as a subsurface to
remap it above another transient parent instead of relying on the more
complicated 'should-map-as-subsurface' helper function.

7 years agoUpdate French translation
Claude Paroz [Thu, 9 Aug 2018 10:37:29 +0000 (10:37 +0000)]
Update French translation

7 years agoMerge branch 'gtk-3-24-improve-error-message' into 'gtk-3-24'
Matthias Clasen [Wed, 8 Aug 2018 09:18:32 +0000 (09:18 +0000)]
Merge branch 'gtk-3-24-improve-error-message' into 'gtk-3-24'

gtkplacessidebar: Improve error message when unlocking volume fails

See merge request GNOME/gtk!266

7 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Mon, 6 Aug 2018 17:16:43 +0000 (17:16 +0000)]
Update Kazakh translation

7 years agoUpdate Polish translation
Piotr Drąg [Mon, 6 Aug 2018 16:55:14 +0000 (18:55 +0200)]
Update Polish translation

7 years agoMerge branch 'gtk-3-24-fix-link-error' into 'gtk-3-24'
Matthias Clasen [Mon, 6 Aug 2018 12:14:29 +0000 (12:14 +0000)]
Merge branch 'gtk-3-24-fix-link-error' into 'gtk-3-24'

font chooser widget: Add missing build flags

See merge request GNOME/gtk!290

7 years agofont chooser widget: Add missing build flags
Kouhei Sutou [Mon, 6 Aug 2018 07:15:48 +0000 (16:15 +0900)]
font chooser widget: Add missing build flags

If we detect HarfBuzz and PangoFT2, GtkFontChooserWidget uses them. So
we need to add CFLAGS and LIBS of them to GTK_DEP_CFLAGS/LIBS. If we
don't add them, MinGW build fails to link.

7 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 5 Aug 2018 13:02:30 +0000 (16:02 +0300)]
Updated Lithuanian translation

7 years agoMake color picker circular
Matthias Clasen [Sun, 5 Aug 2018 01:39:10 +0000 (21:39 -0400)]
Make color picker circular

The need for center alignment was pointed out by Timm Baeder.

7 years agocolor picker: Also try kwin
Matthias Clasen [Fri, 3 Aug 2018 00:55:07 +0000 (20:55 -0400)]
color picker: Also try kwin

use a kwin color picker when we run under kwin.

7 years agoOnly use the portal color picker when appropriate
Matthias Clasen [Fri, 3 Aug 2018 00:54:21 +0000 (20:54 -0400)]
Only use the portal color picker when appropriate

This is just moving this check around.

7 years agoAdd a kwin color picker
Matthias Clasen [Fri, 3 Aug 2018 00:53:37 +0000 (20:53 -0400)]
Add a kwin color picker

This uses the org.kde.kwin.ColorPicker interface.

7 years agoUpdate Polish translation
Piotr Drąg [Sat, 4 Aug 2018 17:39:31 +0000 (19:39 +0200)]
Update Polish translation

7 years agocontainer: Deprecate focus chains
Benjamin Otte [Tue, 31 Jul 2018 20:42:26 +0000 (22:42 +0200)]
container: Deprecate focus chains

7 years agoDeprecate show_all apis
Matthias Clasen [Tue, 31 Jul 2018 17:31:57 +0000 (13:31 -0400)]
Deprecate show_all apis

These functions are gone in GTK+ 4, so deprecate them here.

7 years agowindow: Fallback to CSD titlebar in focus-chain
Andrea Azzarone [Thu, 26 Jul 2018 08:16:32 +0000 (10:16 +0200)]
window: Fallback to CSD titlebar in focus-chain

CSD titlebar are included in the focus-chain. The logic used makes sure that the
initial focus avoids the titlebar, but tabbing around will eventually get there.
This logic fails in case the window has no other focusable widgets apart from
the ones in the header-bar. If this happens keynav focus will be lost. To handle
the above scenario, we need to fallback to focus the header-bar (if any).

Fixes: https://gitlab.gnome.org/GNOME/gnome-software/issues/404
7 years agoUpdate a11y test results
Matthias Clasen [Tue, 31 Jul 2018 01:54:13 +0000 (01:54 +0000)]
Update a11y test results

The color picker shows up here.

7 years ago3.23.2
Matthias Clasen [Mon, 30 Jul 2018 22:33:13 +0000 (18:33 -0400)]
3.23.2

7 years agocolor picker: Better debug spew
Matthias Clasen [Mon, 30 Jul 2018 21:59:16 +0000 (17:59 -0400)]
color picker: Better debug spew

This will help in debugging issues.

7 years agoAdd a color picker implementation for gnome-shell
Matthias Clasen [Thu, 26 Jul 2018 22:50:03 +0000 (18:50 -0400)]
Add a color picker implementation for gnome-shell

This adds a GtkColorPicker implementation that talks
to gnome-shell to get a color.

7 years agoAdd a color picker implementation for portals
Matthias Clasen [Thu, 26 Jul 2018 22:48:37 +0000 (18:48 -0400)]
Add a color picker implementation for portals

This adds a GtkColorPicker implementation that talks
to the screnshot portal to get a color.

7 years agocolor editor: Add a color picker button
Matthias Clasen [Thu, 26 Jul 2018 22:46:37 +0000 (18:46 -0400)]
color editor: Add a color picker button

The button is shown if we have a GtkColorPicker implementation.
Currently, there are none, so the button is never shown.

7 years agoAdd a color picker interface
Matthias Clasen [Thu, 26 Jul 2018 22:45:49 +0000 (18:45 -0400)]
Add a color picker interface

This will be used in the color chooser, in subsequent commits.

7 years agoUpdate POTFILES.in
Piotr Drąg [Mon, 30 Jul 2018 20:44:10 +0000 (22:44 +0200)]
Update POTFILES.in

7 years agoMerge branch 'wl_text_input_clean' into 'gtk-3-24'
Matthias Clasen [Mon, 30 Jul 2018 19:31:37 +0000 (19:31 +0000)]
Merge branch 'wl_text_input_clean' into 'gtk-3-24'

Replace gtk_text_input with text_input_unstable_v3 support

See merge request GNOME/gtk!272

7 years agoimwayland: Add text-input-unstable-v3 support
Dorota Czaplejewicz [Thu, 29 Mar 2018 17:49:10 +0000 (19:49 +0200)]
imwayland: Add text-input-unstable-v3 support

The wayland input module now represents text-input-unstable-v3 support, while the old module supporting gtk-text-input was renamed to gtkwayland.

7 years agoMerge branch 'issue1214-tooltips-win32' into 'gtk-3-24'
Matthias Clasen [Mon, 30 Jul 2018 14:53:48 +0000 (14:53 +0000)]
Merge branch 'issue1214-tooltips-win32' into 'gtk-3-24'

Gdk-Win32: Correct handling of transient state changes

See merge request GNOME/gtk!248

7 years agoUpdate Polish translation
Piotr Drąg [Sun, 29 Jul 2018 18:24:41 +0000 (20:24 +0200)]
Update Polish translation

7 years agoUpdates
Matthias Clasen [Sun, 29 Jul 2018 13:08:05 +0000 (13:08 +0000)]
Updates

7 years agoInclude Emoji category icons as resources too
Matthias Clasen [Fri, 27 Jul 2018 11:56:56 +0000 (11:56 +0000)]
Include Emoji category icons as resources too

These icons are very new in the Adwaita icon theme, so we can't
rely on them being widely available, and will just include them
for now.

7 years agoEmoji chooser: Use icons for sections
Matthias Clasen [Thu, 19 Jul 2018 21:24:11 +0000 (17:24 -0400)]
Emoji chooser: Use icons for sections

This is more reliable than using text-style Emoji
which may not be present.

Based on work by Julian Sparber.

7 years agoUpdated Lithuanian translation
Aurimas Černius [Sat, 28 Jul 2018 17:31:14 +0000 (20:31 +0300)]
Updated Lithuanian translation

7 years agoMerge branch 'wip/chergert/imwayland-leak' into 'gtk-3-24'
Carlos Garnacho [Sat, 28 Jul 2018 10:14:56 +0000 (10:14 +0000)]
Merge branch 'wip/chergert/imwayland-leak' into 'gtk-3-24'

imwayland: fix potential leak of attr list

See merge request GNOME/gtk!277

7 years agoimwayland: fix potential leak of attr list
Christian Hergert [Sat, 28 Jul 2018 06:46:31 +0000 (23:46 -0700)]
imwayland: fix potential leak of attr list

This fixes a potential leak of a PangoAttrList that is set when chaining
up to the parent get_preedit_string(). We check to see if the attr list
was created and reuse it instead of leaking the previous value.

7 years agoGdk-Win32: Correct handling of transient state changes
Luca Bacci [Tue, 17 Jul 2018 10:01:54 +0000 (12:01 +0200)]
Gdk-Win32: Correct handling of transient state changes

gdk_win32_window_set_transient_for() behaves incorrectly when
called in sequence with the same arguments. This fix ensures it
always operates correctly.
In some cases this function gets called multiple times with the
same arguments, e.g. when tooltips are shown.

See issue #1214

7 years agogtk; Deprecate gtk_render_frame_gap()
Benjamin Otte [Tue, 24 Jul 2018 17:44:36 +0000 (19:44 +0200)]
gtk; Deprecate gtk_render_frame_gap()

Use gtk_render_frame() instead.

7 years agogdk: Add GDK_DEPRECATED_IN_3_24() macros
Benjamin Otte [Tue, 24 Jul 2018 18:32:06 +0000 (20:32 +0200)]
gdk: Add GDK_DEPRECATED_IN_3_24() macros

7 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 24 Jul 2018 08:13:50 +0000 (10:13 +0200)]
Updated Spanish translation

7 years agogtkplacessidebar: Improve error message when unlocking volume fails
segfault [Mon, 23 Jul 2018 21:35:01 +0000 (23:35 +0200)]
gtkplacessidebar: Improve error message when unlocking volume fails

7 years agoUpdate Spanish translation
Daniel Mustieles [Mon, 23 Jul 2018 10:07:23 +0000 (10:07 +0000)]
Update Spanish translation

7 years agoUpdate Spanish translation
Daniel Mustieles [Mon, 23 Jul 2018 10:02:39 +0000 (10:02 +0000)]
Update Spanish translation

7 years agoMerge branch 'gtk-3-24-add-spinner-to-sidebar-row' into 'gtk-3-24'
Matthias Clasen [Sun, 22 Jul 2018 17:14:27 +0000 (17:14 +0000)]
Merge branch 'gtk-3-24-add-spinner-to-sidebar-row' into 'gtk-3-24'

gtkplacessidebar: Show busy spinner in sidebar row during mount ops

See merge request GNOME/gtk!260

7 years agogtkplacessidebar: Show busy spinner in sidebar row during mount ops
segfault [Sun, 22 Jul 2018 11:47:46 +0000 (13:47 +0200)]
gtkplacessidebar: Show busy spinner in sidebar row during mount ops

7 years agotest: Fix compile-time warnings
Bastien Nocera [Sat, 21 Jul 2018 12:50:37 +0000 (14:50 +0200)]
test: Fix compile-time warnings

testsuite/gtk/notify.c: In function ‘test_type’:
testsuite/gtk/notify.c:434:14: warning: assignment to ‘GObject *’ {aka ‘struct _GObject *’} from incompatible pointer type ‘GtkSettings *’ {aka ‘struct _GtkSettings *’} [-Wincompatible-pointer-types]
     instance = g_object_ref (gtk_settings_get_default ());
              ^
testsuite/gtk/notify.c:443:16: warning: assignment to ‘GObject *’ {aka ‘struct _GObject *’} from incompatible pointer type ‘GdkWindow *’ {aka ‘struct _GdkWindow *’} [-Wincompatible-pointer-types]
       instance = g_object_ref (gdk_window_new (NULL, &attributes, 0));
                ^

7 years agogtksettings: Remove leftover code
Carlos Garnacho [Fri, 16 Feb 2018 18:25:15 +0000 (19:25 +0100)]
gtksettings: Remove leftover code

The immodule variable is unused

7 years agoUpdate German translation
Tim Sabsch [Fri, 20 Jul 2018 20:31:47 +0000 (20:31 +0000)]
Update German translation

7 years agoMerge branch 'gtk-3-24' into 'gtk-3-24'
Matthias Clasen [Fri, 20 Jul 2018 14:07:44 +0000 (14:07 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'

Remove deprecated functions

See merge request GNOME/gtk!255

7 years agoMerge branch 'wip/muktupavels/deprecate-gtk-css-provider-get-default' into 'gtk-3-24'
Benjamin Otte [Fri, 20 Jul 2018 14:05:12 +0000 (14:05 +0000)]
Merge branch 'wip/muktupavels/deprecate-gtk-css-provider-get-default' into 'gtk-3-24'

gtkcssprovider: deprecate gtk_css_provider_get_default

See merge request GNOME/gtk!257

7 years agogtkcssprovider: deprecate gtk_css_provider_get_default
Alberts Muktupāvels [Thu, 19 Jul 2018 16:20:50 +0000 (19:20 +0300)]
gtkcssprovider: deprecate gtk_css_provider_get_default

This function is unused since cdc6e8272020 commit and does not
contain fallback style.

https://gitlab.gnome.org/GNOME/gtk/issues/1226

7 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 20 Jul 2018 11:21:46 +0000 (11:21 +0000)]
Update Turkish translation

7 years agotests/animated-resizing: Remove deprecated functions
Yi-Soo An [Fri, 20 Jul 2018 06:42:26 +0000 (15:42 +0900)]
tests/animated-resizing: Remove deprecated functions

The functions as below are deprecated
- gdk_screen_get_monitor_geometry
- gdk_screen_get_primary_monitor

Instead of them, use functions below
- gdk_monitor_get_geometry
- gdk_display_get_primary_monitor

7 years agodemos/gtk-demo/changedisplay: Remove deprecated gdk_flush
Yi-Soo An [Fri, 20 Jul 2018 06:40:37 +0000 (15:40 +0900)]
demos/gtk-demo/changedisplay: Remove deprecated gdk_flush

Use gdk_display_flush instead of it.

7 years agomodules/input/gtkimcontextthai: Remove deprecated gdk_beep
Yi-Soo An [Fri, 20 Jul 2018 06:39:49 +0000 (15:39 +0900)]
modules/input/gtkimcontextthai: Remove deprecated gdk_beep

Use gdk_display_beep instead of it.

7 years agoMerge branch '628-text-view-width' into 'gtk-3-24'
Timm Bäder [Fri, 20 Jul 2018 06:24:14 +0000 (06:24 +0000)]
Merge branch '628-text-view-width' into 'gtk-3-24'

Resolve #628: "TextView: spaces acting as non-breaking whitespace if :left- or :right-margin is set"

See merge request GNOME/gtk!236

7 years agoEmoji chooser: Also check for hex boxes
Matthias Clasen [Thu, 19 Jul 2018 21:57:19 +0000 (17:57 -0400)]
Emoji chooser: Also check for hex boxes

We don't want to see those either.

7 years agomoji chooser: Try harder to avoid fallback
Matthias Clasen [Thu, 19 Jul 2018 21:50:54 +0000 (17:50 -0400)]
moji chooser: Try harder to avoid fallback

We don't want to see any fallback rendering.
The current check was still letting some fallback
combinations through.

Based on work by Julian Sparber.

7 years agoMerge branch 'gtk-3-24-defaultvalues-ignore-more' into 'gtk-3-24'
Matthias Clasen [Thu, 19 Jul 2018 20:23:29 +0000 (20:23 +0000)]
Merge branch 'gtk-3-24-defaultvalues-ignore-more' into 'gtk-3-24'

defaultvalue: Ignore more style properties that Adwaita overrides

See merge request GNOME/gtk!253

7 years agodefaultvalue: Ignore more style properties that Adwaita overrides
Iain Lane [Thu, 19 Jul 2018 14:45:48 +0000 (15:45 +0100)]
defaultvalue: Ignore more style properties that Adwaita overrides

These broke once we switched away from Raleigh

7 years agoNEWS: Remove an accidental tab
Daniel Boles [Wed, 18 Jul 2018 22:09:12 +0000 (23:09 +0100)]
NEWS: Remove an accidental tab

7 years agogesturestylus: Clarify a documentation comment
Timm Bäder [Tue, 17 Jul 2018 15:33:09 +0000 (17:33 +0200)]
gesturestylus: Clarify a documentation comment

Use the proper gtkdoc syntax for signals.

7 years ago3.23.1
Matthias Clasen [Wed, 18 Jul 2018 19:55:30 +0000 (15:55 -0400)]
3.23.1

7 years agoUpdate POTFILES.in
Piotr Drąg [Wed, 18 Jul 2018 15:00:11 +0000 (17:00 +0200)]
Update POTFILES.in

7 years agoFix up version annotations
Matthias Clasen [Wed, 18 Jul 2018 11:18:21 +0000 (07:18 -0400)]
Fix up version annotations

The new api here was introduced in 3.24.

7 years agoAdd new API to the docs
Matthias Clasen [Wed, 18 Jul 2018 11:12:41 +0000 (07:12 -0400)]
Add new API to the docs

7 years agoMerge branch 'wip/carlosg/controllers-backport' into 'gtk-3-24'
Matthias Clasen [Wed, 18 Jul 2018 00:23:37 +0000 (00:23 +0000)]
Merge branch 'wip/carlosg/controllers-backport' into 'gtk-3-24'

Wip/carlosg/controllers backport

See merge request GNOME/gtk!246

7 years agoUpdate Hungarian translation
Balázs Meskó [Tue, 17 Jul 2018 23:11:18 +0000 (23:11 +0000)]
Update Hungarian translation

7 years agosm scroll
Carlos Garnacho [Mon, 16 Jul 2018 13:44:35 +0000 (15:44 +0200)]
sm scroll

7 years agodemos: Add "Paint" demo
Carlos Garnacho [Fri, 2 Feb 2018 15:04:17 +0000 (16:04 +0100)]
demos: Add "Paint" demo

7 years agogtk: Add GtkGestureStylus
Carlos Garnacho [Thu, 1 Feb 2018 16:52:40 +0000 (17:52 +0100)]
gtk: Add GtkGestureStylus

This is a GtkGesture done to deal with stylus events from drawing tablets.
Those have a special number of characteristics that extend a regular
pointer, so it makes sense to wrap that.

7 years agogtkeventcontrollerkey: Add ::focus-in/out signals
Carlos Garnacho [Thu, 22 Mar 2018 17:32:19 +0000 (18:32 +0100)]
gtkeventcontrollerkey: Add ::focus-in/out signals

And handle GDK_FOCUS_CHANGE events in order to emit those.

7 years agogtkeventcontrollerkey: Add get_group() call
Carlos Garnacho [Thu, 22 Mar 2018 16:54:52 +0000 (17:54 +0100)]
gtkeventcontrollerkey: Add get_group() call

Callers can use this function on a key-pressed/released signal
to find out the key event group, useful in a few places.

7 years agoeventcontrollerkey: Add function to forward stuff elsewhere
Carlos Garnacho [Sun, 11 Mar 2018 12:38:19 +0000 (13:38 +0100)]
eventcontrollerkey: Add function to forward stuff elsewhere

7 years agogtk: Add GtkEventControllerKey
Carlos Garnacho [Mon, 11 Dec 2017 18:21:38 +0000 (19:21 +0100)]
gtk: Add GtkEventControllerKey

This event controller is meant to replace usage from key-press/release-event
handlers all through. Optionally it can be set a GtkIMContext, so interaction
is carried by the controller.

7 years agoAdd x/y to GtkEventControllerMotion::enter
Matthias Clasen [Tue, 2 Jan 2018 01:07:24 +0000 (20:07 -0500)]
Add x/y to GtkEventControllerMotion::enter

We have this information available in enter events,
and having it in the controller signal as well makes
porting easier.

Update existing users.

7 years agoAdd a simple motion eventcontroller
Matthias Clasen [Mon, 11 Dec 2017 23:29:33 +0000 (18:29 -0500)]
Add a simple motion eventcontroller

This can serve as a replacement for the legacy
event signals for enter/leave/motion notify.

7 years agoAvoid excess notification for GdkEventControllerScroll::flags
Matthias Clasen [Wed, 27 Dec 2017 01:04:07 +0000 (20:04 -0500)]
Avoid excess notification for GdkEventControllerScroll::flags

We have a test that checks this, and it is the right thing to do.

7 years agogtk: Remove CONSTRUCT_ONLY flag from GtkEventControllerScroll::flags
Carlos Garnacho [Tue, 31 Oct 2017 11:45:37 +0000 (12:45 +0100)]
gtk: Remove CONSTRUCT_ONLY flag from GtkEventControllerScroll::flags

There is a gtk_event_controller_scroll_set_flags() call that's meant
to be called after construction (eg. due to scrolledwindow relayouts
hiding/showing scrollbars). The property shouldn't be construct-only
for consistence.

7 years agogtkeventcontrollerscroll: Add some docs
Carlos Garnacho [Fri, 1 Dec 2017 23:18:07 +0000 (00:18 +0100)]
gtkeventcontrollerscroll: Add some docs

7 years agoeventcontrollerscroll: Emit ::scroll for -1/+1 discrete steps
Timm Bäder [Wed, 11 Oct 2017 06:06:33 +0000 (08:06 +0200)]
eventcontrollerscroll: Emit ::scroll for -1/+1 discrete steps

The > 1 meant it only emits the signal for -2/+2 steps.

7 years agogtk: Add GtkEventControllerScroll
Carlos Garnacho [Fri, 15 Sep 2017 11:22:57 +0000 (13:22 +0200)]
gtk: Add GtkEventControllerScroll

This is a GtkEventController implementation to handle mouse
scrolling. It handles both smooth and discrete events and
offers a way for callers to tell their preference too, so
smooth events shall be accumulated and coalesced on request.

On capable devices, it can also emit ::scroll-begin and
::scroll-end enclosing all ::scroll events for a scroll
operation.

It also has builtin kinetic scrolling capabilities, reporting
the initial velocity for both axes after ::scroll-end if
requested.

7 years agowindow: Update opaque region if background-color changes
Benjamin Otte [Fri, 13 Jul 2018 12:52:43 +0000 (14:52 +0200)]
window: Update opaque region if background-color changes

The opaque region is only set when the background color is opaque. So
we need to do something about it when the background color changes.

However, in the case where a size allocation is going to happen, we
already do this update in size_allocate(), so in that case avoid doing
it twice.

7 years agoUpdate Brazilian Portuguese translation
Bruno Lopes da Silva [Tue, 10 Jul 2018 13:02:08 +0000 (13:02 +0000)]
Update Brazilian Portuguese translation

7 years agoMerge branch 'expander-size-3' into 'gtk-3-24'
Jakub Steiner [Mon, 9 Jul 2018 15:27:51 +0000 (15:27 +0000)]
Merge branch 'expander-size-3' into 'gtk-3-24'

HighContrast: Restore expander size

See merge request GNOME/gtk!210

7 years agotext-view: Do not double-allocate borders
Peter Bloomfield [Sun, 8 Jul 2018 21:24:07 +0000 (17:24 -0400)]
text-view: Do not double-allocate borders

Reverts part of Commit 25b67af3

The 'width' part of the commit is the cause of #628: requisition->width
is first set to priv->layout->width, which already includes
priv->left_border + priv->right_border. It's a bit labyrinthine, but
essentially:

*  layout->width is set in update_layout_size() (gtktextlayout.c line 992)
   as the maximum line width, and
*  the line width is set to display->width in gtk_text_layout_real_wrap()
   (gtktextlayout.c line 1183), and
*  display->width is set to text_pixel_width + h_margin + h_padding in
   gtk_text_layout_get_line_display() (gtktextlayout.c line 2584), and
*  h_margin + h_padding is the same as priv->left_border +
   priv->right_border.

Adding it again leads to an increase in the size-request, which
results in wider lines; rinse and repeat.

7 years agoUpdate German translation
Mario Blättermann [Sat, 7 Jul 2018 19:48:26 +0000 (19:48 +0000)]
Update German translation

7 years agoHighContrast: Restore expander size
Samuel Thibault [Thu, 21 Jun 2018 13:58:39 +0000 (15:58 +0200)]
HighContrast: Restore expander size

Expanders used to be 16px high. With the move from the gtk2 rendering
to gtk3 rendering they shrunk to 12px, making them hard to see, because
it's now the icon which is 16px high and the icon contains transparent
borders.

This makes the HighContrast theme use 24px icons instead, to restore
16px expanders. This may expander some containers a bit.

Closes #1046

7 years agoMerge branch 'fix_wayland_csd_announce' into 'gtk-3-24'
Jonas Ådahl [Tue, 3 Jul 2018 10:14:57 +0000 (10:14 +0000)]
Merge branch 'fix_wayland_csd_announce' into 'gtk-3-24'

Fix gdk_wayland_window_announce_csd

See merge request GNOME/gtk!221

7 years agoAdwaita: Drop some unneeded overrides
Daniel Boles [Mon, 2 Jul 2018 20:45:06 +0000 (21:45 +0100)]
Adwaita: Drop some unneeded overrides

The pseudoclasses work fine on the subnodes without having to also apply
`parent:class subnode`.